<#--
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-2-20
 --><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
        "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<!-- SPRING -->  
	<bean type="com.opensymphony.xwork2.ObjectFactory" name="spring" class="org.apache.struts2.spring.StrutsSpringObjectFactory" />
	<constant name="struts.objectFactory" value="spring" />
<!-- SPRING -->
	<#list constants as c>
    	<constant name="${c.key}" value="${c.value}"/>
	</#list>
    
    <package name="_JULEWA_PACKAGE_" extends="convention-default"> 
        
		<interceptors>
        	<#list interceptors as i><#if i._class_?exists><interceptor name="${i._name_}" class="${i._class_}"/>
        	</#if></#list>
            <interceptor-stack name="_JULEWA_INTERCEPTOR_STACK_">
            	<#list interceptors as i><#if i.params?exists>
            		<interceptor-ref name="${i._name_}"><#list i.params as p>
	        			<param name="${p.key}">${p.value}</param>
	        		</#list></interceptor-ref> 
        		<#else><interceptor-ref name="${i._name_}"/> 
        		</#if></#list>
            </interceptor-stack>
        </interceptors>
        <default-interceptor-ref name="_JULEWA_INTERCEPTOR_STACK_"/>
		<#if globalResults?size gt 0>
        <global-results>
        	<#list globalResults as r>
            	<result name="${r.name}" type="${r.type}">${r.value}</result>
            </#list>
        </global-results>
        </#if>
    </package>

</struts>
